import com.yoke.controller.images.ImagesControl;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * Created by jiangzeyin on 2017/7/11.
 */
public class img {
    public static void main(String[] a) throws IOException {
        //ResourceLoader
        File file = new File("D:\\SystemDocument\\Documents\\Tencent Files\\1593503371\\FileRecv\\1 (1).jpg");
        //System.out.println(ImagesControl.getImageType(file));
        System.out.println(ImagesControl.isImage(new FileInputStream(file)));
    }


}
